﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="details.aspx.vb" Inherits="quizzes.details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:PlaceHolder ID="placeholder_cantFind" runat="server" Visible="false">
        <h2 class="pageTitle">View Quiz</h2>
        <strong>I can't find that quiz.</strong><br />
        <asp:HyperLink runat="server" NavigateUrl="~/list.aspx">Choose a quiz.</asp:HyperLink>
    </asp:PlaceHolder>

    <asp:PlaceHolder ID="placeholder_quizHeader" runat="server" Visible="true">
        <div style="float:right;">
            <neonLearn:UserFlash ID="UserFlash" runat="server" Size="Small"/>
        </div>
        <h2 class="pageTitle"><asp:Label ID="lbl_title" runat="server"></asp:Label></h2>
        <p><strong><asp:Label ID="lbl_questionCount" runat="server" /></strong> questions</p>
        <asp:PlaceHolder ID="placeholder_description" runat="server" Visible="false">
            <p><asp:Label ID="lbl_description" runat="server"></asp:Label></p>
        </asp:PlaceHolder>
        <hr style="clear:both;"/>
    </asp:PlaceHolder>

    <asp:PlaceHolder ID="placeholder_questions" runat="server" Visible="false">
        <asp:Repeater ID="rptr_questions" runat="server">
            <ItemTemplate>
                <neonLearn:MultipleChoiceQuestion runat="server" GUID='<%# Container.DataItem("GUID") %>' />
            </ItemTemplate>
            <SeparatorTemplate><hr /></SeparatorTemplate>
            <FooterTemplate>
                <hr />
                <asp:Button ID="btnSubmitAnswers" runat="server" Text="Check my answers" />
            </FooterTemplate>
        </asp:Repeater>
    </asp:PlaceHolder>

    <asp:PlaceHolder ID="placeholder_submitted" runat="server" Visible="false">
        <asp:Repeater ID="rptr_submitted" runat="server" OnItemDataBound="callback_submitted_onItemDataBound">
            <ItemTemplate>
                <strong>
                    <%# Container.DataItem("Question")%>
                </strong>
                <ul>
                    <asp:Repeater ID="rptr_submitted_answers" runat="server">
                        <ItemTemplate>
                            <li>
                                <asp:RadioButton ID="rb_submitted_answer" runat="server" Enabled="False" Checked="false"/>
                                <%# Container.DataItem("Answer") %>
                            </li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </ItemTemplate>
            <SeparatorTemplate><hr /></SeparatorTemplate>
        </asp:Repeater>
    </asp:PlaceHolder>
    
</asp:Content>